package com.googlecode.auctionx.mercadolivre.xml.elements;

import java.util.Collection;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

@Root
public class Listing {
	
	@Attribute(name="items_from")
	private String itemsFrom;
	
	@Attribute(name="items_to")
	private String itemsTo;
	
	@Attribute(name="items_total")
	private String itemsTotal;
	
	@Attribute(name="order_by")
	private String orderBy;
	
	@Element(name="search_properties")
	private SearchProperties searchProperties;

	@Element(name="result_categories")
	private ResultCategories resultCategories;

	@ElementList(entry="items")
	private Collection<Item> items;

	public String getItemsFrom() {
		return itemsFrom;
	}

	public void setItemsFrom(String itemsFrom) {
		this.itemsFrom = itemsFrom;
	}

	public String getItemsTo() {
		return itemsTo;
	}

	public void setItemsTo(String itemsTo) {
		this.itemsTo = itemsTo;
	}

	public String getItemsTotal() {
		return itemsTotal;
	}

	public void setItemsTotal(String itemsTotal) {
		this.itemsTotal = itemsTotal;
	}

	public String getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}

	public void setSearchProperties(SearchProperties searchProperties) {
		this.searchProperties = searchProperties;
	}

	public SearchProperties getSearchProperties() {
		return searchProperties;
	}

	public void setResultCategories(ResultCategories resultCategories) {
		this.resultCategories = resultCategories;
	}

	public ResultCategories getResultCategories() {
		return resultCategories;
	}

	public void setItems(Collection<Item> items) {
		this.items = items;
	}

	public Collection<Item> getItems() {
		return items;
	}
		
}